require 'character'
require 'place'
require 'chapter'

class Book

	attr_accessor \
		:title,
		:subtitle,
		:authors,
		:word_goal

	attr_reader \
		:characters,
		:places,
		:chapters

	def initialize
		@authors = []
		@characters = []
		@places = []
		@chapters = []
	end

	def export(filename, format)
		case format
		when :text
			f = File.open(filename, 'w')
			f.print @chapters[0].text[0]
			f.close
		end
	end

end
